package com.school.springbootmybatis.StuService.impl;

import com.school.springbootmybatis.mapper.StuMapper;
import jakarta.annotation.Resource;
import com.school.springbootmybatis.StuService.StuService;
import com.school.springbootmybatis.entity.Student;
import org.springframework.stereotype.Service;

@Service
public class StuServiceImpl implements StuService{
    @Resource
    private StuMapper stuMapper;
    @Override
    public Student findById(int tno) {
        Student student=stuMapper.selById(tno);
        return student;
    }
    @Override
    public void deleteById(int tno){
        stuMapper.deleteById(tno);
    }

}
